const path = require('path')
const resolve = dir => path.join(__dirname, dir) 

module.exports = {
  pluginOptions: {
    // quasar: {
    //   treeShake: true
    // }
  },
  // https://cli.vuejs.org/zh/config/#transpiledependencies
  transpileDependencies: [
    /[\\\/]node_modules[\\\/]quasar[\\\/]/,
    'vue-echarts',
    'resize-detector'
  ],

  chainWebpack: config => {
    config.resolve.alias
    .set('@', resolve('src'))
  }
}
